home *** CD-ROM | disk | FTP | other *** search
- Path: news.compusult.nf.ca!usenet
- From: "Barry A. Ryan" <bryan@public.compusult.nf.ca>
- Newsgroups: comp.lang.c
- Subject: Question on Heap Memory
- Date: 20 Mar 1996 00:17:52 GMT
- Organization: Compusult Limited, St. John's, NF, Canada
- Message-ID: <4inirg$9qv@hobbes.compusult.nf.ca>
- NNTP-Posting-Host: ts00_p17.remote.nfld.com
-
- Hi
-
- Is there a way to declare a large structure in the heap area of
- memory without using malloc? A global structure uses the
- global area of memory, a local uses the stack. How can
- space be allocated/reserved in the heap area with a structure
- declaration such as/similar to:
-
- struct matrix{
- int a;
- int b;
- float c;
- etc.
- etc.
- } matrix1[1000][1000];
-
- Due to the size I need to use allot of heap space. Can it be done
- without malloc?
-
-
-